#pragma once

class CReaderController
{
public:
	HANDLE hComHandle;
	unsigned char ReaderAddr;
	char* CommPort;
	int BaudRate;
	int EpcInterval;
	int EpcTimes;

public:
	CReaderController(void);
	~CReaderController(void);
	bool ReaderConnect(HANDLE* m_hComHandle, char* m_CommPort);
	bool ReaderDisconnect();
	int getBaudReate();
	int getEpcInterval();
	int getEpcTimes();
	HANDLE getHComHandle();
	void setHComHandle(HANDLE m_hComHandle);
	void setReaderAddr(unsigned char m_ReaderAddr);
	void setCommPort(char m_CommPort[5]);
	void setBaudRate(int m_BaudRate);
	void setEpcInterval(int m_EpcInterval);
	void setEpcTimes(int m_EpcTimes);
};

extern CReaderController readerController;